package com.medical.data.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author cj
 * @since 2024-02-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="PatientTemplate对象", description="")
@Accessors(chain = true)
public class PatientTemplate implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty(value = "患者")
    private String patientId;

    @ApiModelProperty(value = "节点")
    private String templateId;

    @ApiModelProperty(value = "项目")
    private String projectId;

    @ApiModelProperty(value = "医生")
    private String doctorId;


    @ApiModelProperty(value = "未完成个数")
    private Integer notFinishNumber;

    @ApiModelProperty(value = "哪些表单未完成")
    private String notFinishFormIdJson;

    @ApiModelProperty(value = "完成个数")
    private Integer finishNumber;

    @ApiModelProperty(value = "哪些表单已完成")
    private String finishNumberFormIdJson;

    @TableLogic
    private Boolean isDelete;

    @Version
    @ApiModelProperty(value = "版本号")
    private Integer version;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

}
